package com.hsc.www.validator.test3;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    @NotEmpty(groups = {First.class})
    private String id;

    @NotEmpty(groups = {First.class})
    @Size(min = 3, max = 8, groups = {Second.class})
    private String name;
}
